/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package edu.asu.cse360.service.client;

import edu.asu.cse360.model.CustomerSession;
import edu.asu.cse360.model.Order;
import edu.asu.cse360.model.PaymentConfirmation;
import edu.asu.cse360.service.OrderService;
import java.util.ArrayList;
import java.util.List;

/**
 *
 * @author owner
 */
public class ClientOrderService implements OrderService {

    private List<Order> orders;

    public ClientOrderService()
    {
        orders = new ArrayList<Order>();
    }

    @Override
    public void saveConfirmation(PaymentConfirmation confirm) {
    }

    @Override
    public Order placeOrder(Order order, CustomerSession customerSession) {
        orders.add(order);
        return order;
    }

    @Override
    public boolean validConfirmation(String cofirmationId) {
        return true;
    }

}
